From ac56b9955e2729994dac07b74aec7a4f5d284660 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 7 May 2010 09:27:40 +0100 Subject: [PATCH] xend: support blktap2 in xend blkif utils Support tap2 device type in xend blkif utils parse method. Signed-off-by: Jim Fehlig --- tools/python/xen/util/blkif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/util/blkif.py b/tools/python/xen/util/blkif.py index c73a946a25..cbe76b613f 100644 --- a/tools/python/xen/util/blkif.py +++ b/tools/python/xen/util/blkif.py @@ -86,7 +86,7 @@ def _parse_uname(uname): else: fn = "/dev/%s" %(fn,) - if typ == "tap": + if typ in ("tap", "tap2"): (taptype, fn) = fn.split(":", 1) return (fn, taptype) -- 2.30.2